﻿<%@page import="java.util.*" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%
	String Code = (String)session.getAttribute("LanguageCode");
	String SubCode = (String)session.getAttribute("LanguageSubcode");
   	Locale locale = new Locale(Code, SubCode);
	ResourceBundle resource = ResourceBundle.getBundle("resource", locale);
%>
<script>
$(function() {
	Month_Short_Apr = "<%=resource.getString("Month.Short.Apr") %>";
	Month_Short_Aug = "<%=resource.getString("Month.Short.Aug") %>";
	Month_Short_Dec = "<%=resource.getString("Month.Short.Dec") %>";
	Month_Short_Feb = "<%=resource.getString("Month.Short.Feb") %>";
	Month_Short_Jan = "<%=resource.getString("Month.Short.Jan") %>";
	Month_Short_Jul = "<%=resource.getString("Month.Short.Jul") %>";
	Month_Short_Jun = "<%=resource.getString("Month.Short.Jun") %>";
	Month_Short_Mar = "<%=resource.getString("Month.Short.Mar") %>";
	Month_Short_May = "<%=resource.getString("Month.Short.May") %>";
	Month_Short_Nov = "<%=resource.getString("Month.Short.Nov") %>";
	Month_Short_Oct = "<%=resource.getString("Month.Short.Oct") %>";
	Month_Short_Sep = "<%=resource.getString("Month.Short.Sep") %>";
	
	Month_Full_Apr = "<%=resource.getString("Month.Full.April") %>";
	Month_Full_Aug = "<%=resource.getString("Month.Full.August") %>";
	Month_Full_Dec = "<%=resource.getString("Month.Full.December") %>";
	Month_Full_Feb = "<%=resource.getString("Month.Full.February") %>";
	Month_Full_Jan = "<%=resource.getString("Month.Full.January") %>";
	Month_Full_Jul = "<%=resource.getString("Month.Full.July") %>";
	Month_Full_Jun = "<%=resource.getString("Month.Full.June") %>";
	Month_Full_Mar = "<%=resource.getString("Month.Full.March") %>";
	Month_Full_May = "<%=resource.getString("Month.Full.May") %>";
	Month_Full_Nov = "<%=resource.getString("Month.Full.November") %>";
	Month_Full_Oct = "<%=resource.getString("Month.Full.October") %>";
	Month_Full_Sep = "<%=resource.getString("Month.Full.September") %>";
	
	Day_Sun = "<%=resource.getString("Calendar.ShortDay.Sun") %>";
	Day_Mon = "<%=resource.getString("Calendar.ShortDay.Mon") %>";
	Day_Tue = "<%=resource.getString("Calendar.ShortDay.Tue") %>";
	Day_Wed = "<%=resource.getString("Calendar.ShortDay.Wed") %>";
	Day_Thu = "<%=resource.getString("Calendar.ShortDay.Thu") %>";
	Day_Fri = "<%=resource.getString("Calendar.ShortDay.Fri") %>";
	Day_Sat = "<%=resource.getString("Calendar.ShortDay.Sat") %>";
	
	Day_Full_Sun = "<%=resource.getString("Calendar.FullDay.Sun") %>";
	Day_Full_Mon = "<%=resource.getString("Calendar.FullDay.Mon") %>";
	Day_Full_Tue = "<%=resource.getString("Calendar.FullDay.Tue") %>";
	Day_Full_Wed = "<%=resource.getString("Calendar.FullDay.Wed") %>";
	Day_Full_Thu = "<%=resource.getString("Calendar.FullDay.Thu") %>";
	Day_Full_Fri = "<%=resource.getString("Calendar.FullDay.Fri") %>";
	Day_Full_Sat = "<%=resource.getString("Calendar.FullDay.Sat") %>";
	
	
	SELECT_SPAN_DAYS = "<%=resource.getString("Reservation.Selection.SelectSpanDays") %>";
	SELECT_SPAN_1DAY = "<%=resource.getString("Reservation.Selection.SelectSpan1Day") %>";
	
	//--------------------popup title--------------
	Popup_Preemption = "<%=resource.getString("Reservation.edit.popup.preemption") %>";
	Popup_ResId = "<%=resource.getString("Reservation.edit.popup.resId") %>";
	Popup_Group = "<%=resource.getString("Reservation.edit.popup.group") %>";
	Popup_GroupId = "<%=resource.getString("Reservation.edit.popup.groupId") %>";
	Popup_ReasonCancellation_title = "<%=resource.getString("ReasonCancellation.title.reason") %>";
	//--------------------------------------------
	Popup_Adult = "<%=resource.getString("Popup.adult") %>";
	Popup_Agency = "<%=resource.getString("Popup.agency") %>";
	Popup_TemporaryBooking = "<%=resource.getString("Popup.agent") %>";
	Popup_Preemption = "<%=resource.getString("Popup.booking") %>";
	Popup_BookingCode = "<%=resource.getString("Popup.bookingcode") %>";
	Popup_btnAgent= "<%=resource.getString("Popup.btnText.agent") %>";
	Popup_btnCustomer = "<%=resource.getString("Popup.btnText.commoncus") %>";
	Popup_Children =  "<%=resource.getString("Popup.children") %>";
	Popup_Close =  "<%=resource.getString("Popup.close") %>";
	Popup_CheckIn =  "<%=resource.getString("Popup.datecheckin") %>";
	Popup_CheckOut =  "<%=resource.getString("Popup.datecheckout") %>";
	Popup_Edit =  "<%=resource.getString("Popup.edit") %>";
	Popup_GroupCode =  "<%=resource.getString("Popup.groupcode") %>";
	Popup_Lastname =  "<%=resource.getString("Popup.lastname") %>";
	Popup_LengthOfStay =  "<%=resource.getString("Popup.lengthofstay") %>";
	Popup_Mobile =  "<%=resource.getString("Popup.mobile") %>";
	Popup_Name =  "<%=resource.getString("Popup.name") %>";
	Popup_Nigths =  "<%=resource.getString("Popup.nigths") %>";
	Popup_PayG =  "<%=resource.getString("Popup.paygroup") %>";
	Popup_BookingDetails =  "<%=resource.getString("Popup.phone") %>";
	Popup_PreemtionRoom =  "<%=resource.getString("Popup.preemptionroom") %>";
	Popup_PreemptionRoomG =  "<%=resource.getString("Popup.preemptionroomgroup") %>";
	Popup_Price =  "<%=resource.getString("Popup.price") %>";
	Popup_Print =  "<%=resource.getString("Popup.print") %>";
	Popup_Room =  "<%=resource.getString("Popup.room") %>";
	Popup_RoomAmount =  "<%=resource.getString("Popup.roomamount") %>";
	Popup_Roomtype =  "<%=resource.getString("Popup.roomtype") %>";
	Popup_Salutation =  "<%=resource.getString("Popup.salutation") %>";
	Popup_SeasonalRate =  "<%=resource.getString("Popup.seasonalrate") %>";
	Popup_SendMail =  "<%=resource.getString("Popup.sendemail") %>";
	Popup_SemdMmailG =  "<%=resource.getString("Popup.sendemailgroup") %>";
	Popup_Mail =  "<%=resource.getString("Popup.tel") %>";
	Popup_Telephone =  "<%=resource.getString("Popup.telephone") %>";
	Popup_Remain =  "<%=resource.getString("Popup.total") %>";
	Popup_TotalG =  "<%=resource.getString("Popup.totalgroup") %>";
	Popup_confirmCancellation = "<%=resource.getString("Reservation.edit.popup.confirmCancellation") %>";
	Popup_CheckinSelectedRoom = "<%=resource.getString("editReservation.group.checkinSelectedRoom") %>";
	
	
	//------------folio----------------------------------------------//
	booking_detail_label = "<% out.print(resource.getString("Payment.bookingdetails.bookingdetails"));%>";
	guestLag ="<% out.print(resource.getString("Payment.folio.guest"));%>";
	amountLag="<% out.print(resource.getString("Payment.folio.amount"));%>";
	paidLag="<% out.print(resource.getString("Payment.folio.paid"));%>";
	balanceLag="<% out.print(resource.getString("Payment.folio.balance"));%>";
	roomtypeLag="<% out.print(resource.getString("Payment.folio.roomtype"));%>";
	
	delfoliolag="<% out.print(resource.getString("Payment.folio.btn.delfolio"));%>";
	emailLag="<% out.print(resource.getString("Payment.folio.btn.email"));%>";
	totleLag="<% out.print(resource.getString("Payment.folio.total"));%>";
	paytermLag="<% out.print(resource.getString("Payment.folio.payterm"));%>";
	
	cleaning_cleanRooms = "<%=resource.getString("rightClickMenu.CleaningMenu.cleanRooms")%>";
	cleaning_dirtyRooms = "<%=resource.getString("rightClickMenu.CleaningMenu.dirty Rooms")%>";
	cleaning_touchUpRooms = "<%=resource.getString("rightClickMenu.CleaningMenu.touchUpRooms")%>";
	cleaning_inspectRooms = "<%=resource.getString("rightClickMenu.CleaningMenu.inspectRooms")%>";
	cleaning_repairRooms = "<%=resource.getString("rightClickMenu.CleaningMenu.repairRooms")%>";
	cleaning_dnrRooms = "<%=resource.getString("rightClickMenu.CleaningMenu.dnrRooms")%>";
	
	//------------------------chargeOwner--------------------------------------------------------//
	
	//------------Start RoomManageMent----------------------------------------------//
		//------------Title----------------------------------------------//
		TitleCheckoutList ="<% out.print(resource.getString("RoomManagementList.CheckOut.title.checkoutTitle"));%>";
		//------------Button----------------------------------------------//
		btnCloseRoomManageMent ="<% out.print(resource.getString("RoomManagementList.CheckOut.button.close"));%>";
		btnPrintRoomManageMent ="<% out.print(resource.getString("RoomManagementList.CheckOut.button.PrintTable"));%>";
		
		btnAddToNewGroupRoomManageMent ="<% out.print(resource.getString("RoomManagementList.CheckOut.button.addNewGroup"));%>";
		btnRemoveFromGroupRoomManageMent ="<% out.print(resource.getString("RoomManagementList.CheckOut.button.removeFromGroup"));%>";
		btnAddToGroupRoomManageMent ="<% out.print(resource.getString("RoomManagementList.CheckOut.button.addToGroup"));%>";	
		//------------Table----------------------------------------------//
		ownerGroupLag="<% out.print(resource.getString("Payment.bookingdetails.groupowner"));%>";
		adult = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.adult"));%>";
		child = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.child"));%>";
		statusResv = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.statusReservedRooms"));%>";
		statusCheckin = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.statusCheckIn"));%>";
		statusCheckinNoFull = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.statusCheckinNoFull"));%>";
		statusCancelCheckin = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.statusCancelCheckin"));%>";
		statusTempResv = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.statusTempRooms"));%>";
		statusCheckOut = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.statusCheckOut"));%>";
		statusCancel = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.statusCancel"));%>";
		statusSomeReservation = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.statusReservationNoFull"));%>";
		todayroomstatus_empty = "<%=resource.getString("housekeeping.todayroomstatus.Empty")%>";
		chargeAmount = "<% out.print(resource.getString("RoomManagementList.Cancellation.table.chargeAmount"));%>";
		reasonPrint = "<% out.print(resource.getString("RoomManagementList.Cancellation.table.reason"));%>";
		cancellationEmail = "<% out.print(resource.getString("RoomManagementList.Cancellation.table.cancellationEmail"));%>";
		Reinstate = "<% out.print(resource.getString("RoomManagementList.Cancellation.table.Reinstate"));%>";
		
		
		//--------------------Popup--------------------------//
		popupFristName = "<% out.print(resource.getString("RoomManagementList.popup.addnewGroup.fristName"));%>";
		popupLastName = "<% out.print(resource.getString("RoomManagementList.popup.addnewGroup.lastName"));%>"; 
		popupSalutation = "<% out.print(resource.getString("RoomManagementList.popup.addnewGroup.salutation"));%>"; 
		popupPhone = "<% out.print(resource.getString("RoomManagementList.popup.addnewGroup.phone"));%>"; 
		popupGuest = "<% out.print(resource.getString("RoomManagementList.popup.addnewGroup.guest"));%>"; 
		popupTitle = "<% out.print(resource.getString("RoomManagementList.popup.addnewGroup"));%>"; 
		//Message//
		emptyName = "<% out.print(resource.getString("RoomManagementList.popup.message.nameEmpty"));%>"; 
		emptyLastName = "<% out.print(resource.getString("RoomManagementList.popup.message.lastnameEmpty"));%>";
		pleaseSelectReservationAddToNewGroup = "<% out.print(resource.getString("RoomManagementList.popup.message.selectReservation"));%>";
		pleaseSelectReservationRemoveFromGroup = "<% out.print(resource.getString("RoomManagementList.popup.message.selectReservationToRemove"));%>";
		pleaseSelectReservationAddToGroup = "<% out.print(resource.getString("RoomManagementList.popup.message.selectReservationAddGroup"));%>";
		pleaseSelectGroup = "<% out.print(resource.getString("RoomManagementList.popup.message.pleaseSelectGroup"));%>";
		confirmRemoveFromGroup = "<% out.print(resource.getString("RoomManagementList.popup.message.confirmRemoveFromGroup"));%>";
		confirmAddReservationANewgroup = "<% out.print(resource.getString("RoomManagementList.popup.message.confirmAddReservationANewgroup"));%>";
		confirmAddReservationToGroup = "<% out.print(resource.getString("RoomManagementList.popup.message.confirmAddReservationToGroup"));%>";
		confirmCancelTempReservationToGroup = "<% out.print(resource.getString("RoomManagementList.popup.message.confirmCancelTemp"));%>";
		confirmReservation = "<% out.print(resource.getString("RoomManagementList.TempReserve.popup.confirmReservation"));%>";
		guestEmpty = "<% out.print(resource.getString("RoomManagementList.popup.message.guestEmpty"));%>";
		agencyEmpty = "<% out.print(resource.getString("RoomManagementList.popup.message.agencyEmpty"));%>";
		/// Button ///
		btnAddToNewGroup = "<% out.print(resource.getString("RoomManagementList.popup.button.btnAddToNewGroup"));%>"; 
		btnCloseAddToNewGroup = "<% out.print(resource.getString("RoomManagementList.popup.button.btnClose"));%>"; 
		// Print //
		typeSource = "<% out.print(resource.getString("RoomManagementList.PendingFolioList.typeSource"));%>";
		folioNumber = "<% out.print(resource.getString("RoomManagementList.PendingFolioList.folioNumber"));%>";
		TotalSum = "<% out.print(resource.getString("RoomManagementList.PendingFolioList.TotalSum"));%>";
		expressPaidPrint = "<% out.print(resource.getString("RoomManagementList.PendingFolioList.paid"));%>";
		expressBalance = "<% out.print(resource.getString("RoomManagementList.PendingFolioList.balance"));%>";
		typeResv = "<% out.print(resource.getString("RoomManagementList.TrackBookingHoarding.tatle.typeResv"));%>";
		expressDeposits = "<% out.print(resource.getString("RoomManagementList.TrackBookingHoarding.tatle.deposits"));%>";
		expressPaid = "<% out.print(resource.getString("RoomManagementList.TrackBookingHoarding.tatle.Paid"));%>";
		TrackHoardingPaid = "<% out.print(resource.getString("RoomManagementList.TrackHoarding.table.piad"));%>";
		dueTillNow = "<% out.print(resource.getString("RoomManagementList.TrackHoarding.table.dueTillNow"));%>";
		
		GuestListcheckin = "<% out.print(resource.getString("RoomManagementList.GuestList.table.checkin"));%>";
		GuestListcheckout = "<% out.print(resource.getString("RoomManagementList.GuestList.table.checkout"));%>";
		GuestListStatus = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.Status"));%>";
		GuestListtypeRoom = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.typeRoom"));%>";
		
		displayStatus = "<% out.print(resource.getString("RoomManagementList.CheckedIn.table.displayStatus"));%>";
		titleGuest = "<% out.print(resource.getString("RoomManagementList.GuestList"));%>";
		groupCode ="<% out.print(resource.getString("RoomManagementList.CheckOut.table.groupCode"));%>";
		resId = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.ResId"));%>";
		groupGuestName = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.groupGuestName"));%>";
		duration = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.StayDuration"));%>";
		typeRoom = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.typeRoom"));%>";
		pax = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.Pax"));%>";
		statusPrint = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.Status"));%>";
		amountPrint = "<% out.print(resource.getString("RoomManagementList.CheckOut.table.amount"));%>";
		notePrint =	"<% out.print(resource.getString("RoomManagementList.CheckOut.table.noteDescription"));%>";
		checkOutCard =	"<% out.print(resource.getString("RoomManagementList.CheckOut.table.checkOutCard"));%>";
		///Empty
		dataEmpty =	"<% out.print(resource.getString("RoomManagementList.dataEmpty"));%>";
		//NoGuestName
		noGuestName_String =	"<% out.print(resource.getString("RoomManagementList.noGuestName"));%>";
		//------------End RoomManageMent----------------------------------------------//
		
		//--- hoardingList ---//
		hoardingList =	"<% out.print(resource.getString("hoarding.hoardingList"));%>";
		hoardingTime =	"<% out.print(resource.getString("hoarding.time"));%>";
		hoardingRoomCustomer =	"<% out.print(resource.getString("hoarding.roomcustomer"));%>";
		hoardingAmount =	"<% out.print(resource.getString("hoarding.amount"));%>";
		hoardingAllAmount =	"<% out.print(resource.getString("hoarding.total"));%>";
		/// Temp
		// Button
		BtnCheckinTemp = "<% out.print(resource.getString("RoomManagementList.TempReserve.table.CheckIn"));%>";
		BtnCancelTemp = "<% out.print(resource.getString("RoomManagementList.TempReserve.table.CancelResv"));%>";
	
	
	//-----------------------------split------------------------------//
	addSplitReservation ="<% out.print(resource.getString("SplitReservation.addSplitReservation"));%>";
	extendReservation ="<% out.print(resource.getString("SplitReservation.extendReservation"));%>";

	//--------------------------simple label--------------------------//
	simpleLabel_roomType="<% out.print(resource.getString("simpleLabel.roomType"));%>";
	simpleLabel_Date="<% out.print(resource.getString("simpleLabel.Date"));%>";
	simpleLabel_room="<% out.print(resource.getString("simpleLabel.room"));%>";
	simpleLabel_Message="<% out.print(resource.getString("simpleLabel.Message"));%>";
	simpleLabel_Button_Yes="<% out.print(resource.getString("simpleLabel.Button.Yes"));%>";
	simpleLabel_Button_No="<% out.print(resource.getString("simpleLabel.Button.No"));%>";
	simpleLabel_Button_OK="<% out.print(resource.getString("simpleLabel.Button.OK"));%>";
	simpleLabel_Button_Close="<% out.print(resource.getString("simpleLabel.Button.Close"));%>";
	simpleLabel_Description="<% out.print(resource.getString("simpleLabel.description"));%>";
	simpleLabel_Select="<% out.print(resource.getString("simpleLabel.Select"));%>";
	simpleLabel_Night = "<% out.print(resource.getString("simpleLabel.night"));%>";
	simpleLabel_From="<% out.print(resource.getString("simpleLabel.from"));%>";
	simpleLabel_To="<% out.print(resource.getString("simpleLabel.to"));%>";
	simpleLabel_Comments="<% out.print(resource.getString("simpleLabel.Comments"));%>";
	
	//----------Cancel Reservation-------------//
	Popup_btn_Cancel_resv = "<%=resource.getString("ReasonCancellation.btn.cancelres")%>";
	Popup_label_Cancel_Reason = "<%=resource.getString("ReasonCancellation.popup.reason")%>";
	Popup_label_insert_time = "<%=resource.getString("ReasonCancellation.popup.inserttime")%>";
	Popup_label_time = "<%=resource.getString("ReasonCancellation.popup.colok")%>";
	Popup_label_Cancel_detail = "<%=resource.getString("ReasonCancellation.popup.detail")%>";
	Popup_label_Cancel_SendEmail = "<%=resource.getString("ReasonCancellation.popup.sendemail")%>";
	Popup_label_Cancel_insert_mail = "<%=resource.getString("ReasonCancellation.popup.insertmassage")%>";
	
	//--------------------------move----------------------------//
	messagebox_MoveFail="<% out.print(resource.getString("messagebox.MoveFail"));%>";
	messagebox_MoveReservation="<% out.print(resource.getString("messagebox.MoveReservation"));%>";
	//--------------------------DialogHeader-----------------------------------------------------------//
	reserved_room = "<%=resource.getString("Popup.newhead.reservedroom")%>";
	select_room = "<%=resource.getString("Popup.newhead.selectroom")%>";
	assign_room ="<%=resource.getString("Popup.newhead.assign")%>";
	
	//------------------Edit Reservation------------------//
	addguest_label = "<%=resource.getString("Reservation.edit.popup.addguest")%>";
	saveFail_label = "<%=resource.getString("messagebox.saveFail")%>";
	
	Calendar_Today = "<%=resource.getString("Calendar.Today")%>";
	Calendar_Tomorrow = "<%=resource.getString("Calendar.Tomorrow")%>";
	addGuest_label = "<%=resource.getString("editReservation.addGuest")%>";
	
	//--------------Warning Message--------------//
	WarningMessage_FillName = "<%=resource.getString("WarningMessage.FillName")%>";
	WarningMessage_FillTel = "<%=resource.getString("WarningMessage.FillTel")%>";
	WarningMessage_FillNumber = "<%=resource.getString("WarningMessage.FillNumber")%>";
	Message_loadFail = "<%=resource.getString("messagebox.loadFail")%>";
	
	//---------------charge dialog----------------------------//
	customcharges = "<%out.print(resource.getString("Payment.othercharges.customcharges"));%>";
	othercharges = "<%out.print(resource.getString("Payment.othercharges.othercharges"));%>";
	btnSave= "<%out.print(resource.getString("Payment.othercharges.btn.save"));%>";
	btnCancel= "<%out.print(resource.getString("Payment.othercharges.btn.cancel"));%>";
	selectPOS = "<%out.print(resource.getString("Charge.dailogCharge.selectPOS"));%>";
	selectItem = "<%out.print(resource.getString("Charge.dailogCharge.selectItem"));%>";
	//-----------------rute charge----------------------------------//
	btnrutechargeOk ="<% out.print(resource.getString("Payment.btn.ok")); %>";
	btnrutechargeCancel="<% out.print(resource.getString("Payment.btn.cancel")); %>";
	ruteCharge="<% out.print(resource.getString("Payment.routenewfolio.rnf")); %>";
	routePayment ="<% out.print(resource.getString("Payment.routep.routepayment")); %>";
	refund = "<% out.print(resource.getString("Payment.refund.refund")); %>";
	//--------------------------------------charge/refund table--------------------//
	
	Qty ="<% out.print(resource.getString("Payment.accountstatement.charge.qty")); %>";
	roomCharge ="<% out.print(resource.getString("Payment.accountstatement.charge.roomCharge")); %>";
	refundCharge ="<% out.print(resource.getString("Payment.accountstatement.charge.refund")); %>";
	sum ="<% out.print(resource.getString("Payment.accountstatement.total")); %>";
	//-------------------------------------tax-----------------------------------//
	exceptTex="<% out.print(resource.getString("Payment.footer.footer_left.tax-exempt")); %>";
	//-----------------------------delfolio---------------------------------------//
	delFolio="<% out.print(resource.getString("Payment.folio.btn.delfolio"));%>";
	//-------------------------------menageguest----------------------//
	managegueat="<%out.print(resource.getString("manageGuestdialog.guestDetail"));%>";
	btn_managegueat_save="<%out.print(resource.getString("manageGuestdialog.btn.save"));%>";
	btn_managegueat_cancel="<%out.print(resource.getString("manageGuestdialog.btn.cancel"));%>";
	btn_clear_guest="<%out.print(resource.getString("RoomManagementList.popup.addnewGroup.clear"));%>";
	btn_add_guest="<%out.print(resource.getString("RoomManagementList.popup.addnewGroup.ok"));%>";
	task_defineduedate="<%out.print(resource.getString("AuditTrail.Task.defineDueDate"));%>";
	Add_new_guest="<%out.print(resource.getString("RoomManagementList.popup.addnewGroup.addguest"));%>";
	
	Hours1 = "<%out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.hours1"));%>";
	Hours = "<%out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.hours2"));%>";
	Days = "<%out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.days"));%>";
	RoomNights = "<%out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.roomnight"));%>";
	PercentOfBooking = "<%out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.percentofbooking"));%>";
	ClickToChange = "<%out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>";
	TextTo = "<% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.to"));%>";
	After = "<% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.after"));%>";
	CheckInTime = "<% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.checkintime"));%>";
	ExpectedArrivalTime = "<% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.expectedarrivaltime"));%>";
	ChargeNoShow = "<% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.chargenoshow"));%>";
	
	//Night Audit
	StartNightAudit = "<% out.print(resource.getString("NightAudit.start"));%>";
	//stayDetail
	resDetail = "<%out.print(resource.getString("editReservation.ResDetail.resdetail"));%>";
	resDetail_checkin = "<%out.print(resource.getString("editReservation.ResDetail.checkin"));%>";
	resDetail_checkout ="<%out.print(resource.getString("editReservation.ResDetail.checkOut"));%>";
	resDetail_duration ="<%out.print(resource.getString("editReservation.ResDetail.Duration"));%>";
	resDetail_night ="<%out.print(resource.getString("editReservation.ResDetail.night"));%>";
	resDetail_extrabad ="<%out.print(resource.getString("editReservation.ResDetail.extrabad"));%>";
	resDetail_objective ="<%out.print(resource.getString("editReservation.ResDetail.objective"));%>";
	resDetail_atcome ="<%out.print(resource.getString("editReservation.ResDetail.atcome"));%>";
	resDetail_save ="<%out.print(resource.getString("editReservation.ResDetail.save"));%>";
	resDetail_edit ="<%out.print(resource.getString("editReservation.ResDetail.edit"));%>";
	//travel
	comeT ="<%out.print(resource.getString("editReservation.travel.come"));%>";
	backT ="<%out.print(resource.getString("editReservation.travel.back"));%>";
	travelBy ="<%out.print(resource.getString("editReservation.travel.travelby"));%>";
	travelArrive ="<%out.print(resource.getString("editReservation.travel.arrive"));%>";
	timeArrive ="<%out.print(resource.getString("editReservation.travel.timearrive"));%>";
	saveTotask ="<%out.print(resource.getString("editReservation.travel.savetotask"));%>";
	btnTedit ="<%out.print(resource.getString("editReservation.travel.edit"));%>";
	//AddcreditCard
	addcreditCard="<%out.print(resource.getString("editReservation.creditCard.AddcreditCard.addCC"));%>";
	addcreditCardtype ="<%out.print(resource.getString("editReservation.creditCard.AddcreditCard.cardtype"));%>";
	
	creditCardDetail_ex ="<%out.print(resource.getString("editReservation.creditCard.expire"));%>";
	creditCardDetail="<%out.print(resource.getString("editReservation.creditCard.Addcc.Cdetail"));%>";
	creditCardDetail_viewAll="<%out.print(resource.getString("editReservation.creditCard.Addcc.viewAll"));%>";
	ACC_name ="<%out.print(resource.getString("editReservation.creditCard.AddcreditCard.Name"));%>";
	ACC_Cn="<%out.print(resource.getString("editReservation.creditCard.AddcreditCard.Cn"));%>";
	ACC_type="<%out.print(resource.getString("editReservation.creditCard.AddcreditCard.type"));%>";
	ACC_Expiry="<%out.print(resource.getString("editReservation.creditCard.AddcreditCard.Expiry"));%>";
	
	//force logout
	Warning="<%out.print(resource.getString("simpleLabel.warning"));%>";
	ForceLogout="<%out.print(resource.getString("simpleLabel.forcelogout"));%>";
	
	
	ShortMonth = [Month_Short_Jan, Month_Short_Feb, Month_Short_Mar, Month_Short_Apr, Month_Short_May, Month_Short_Jun, Month_Short_Jul, Month_Short_Aug, Month_Short_Sep, Month_Short_Oct, Month_Short_Nov, Month_Short_Dec];
	FullMonth = [Month_Full_Jan, Month_Full_Feb, Month_Full_Mar,Month_Full_Apr, Month_Full_May, Month_Full_Jun, Month_Full_Jul, Month_Full_Aug, Month_Full_Sep, Month_Full_Oct, Month_Full_Nov, Month_Full_Dec];
	ShortDay = [Day_Sun,Day_Mon,Day_Tue,Day_Wed,Day_Thu,Day_Fri,Day_Sat];
	FullDay = [Day_Full_Sun,Day_Full_Mon,Day_Full_Tue,Day_Full_Wed,Day_Full_Thu,Day_Full_Fri,Day_Full_Sat];
});
function checkin_checkoutdatepicker(dateElement) {
		if(dateElement==undefined){
			return null;
		}
		var FormatDateGeneral = SharedData.General.dateFormat.dateTimeFormat;
		
	//	var dateElement =$.datepicker.formatDate('yy-mm-dd', new Date (dateElement));
		//var dateElement = $.datepicker.parseDate("yy-mm-dd",dateElement);
	//	
		//var nextDate = new Date(dateElement);
	//	var dateTime =dateElement.toFormatString('yyyy-MM-dd');
		var dateParts = dateElement.split("-");
		var day = dateParts[2];
		var month = dateParts[1];
		var year = parseInt(dateParts[0])+543;
		switch (parseInt(month)) {
		case 1:
			if(FormatDateGeneral=="d M yy"){
				return (day + " " + Month_Short_Jan + " " + year);
			}else if(FormatDateGeneral=="M/d/yy"){
				return (Month_Short_Jan+ "/" + day  + "/" + year);
			}else if(FormatDateGeneral=="MMM d, y"){
				return (Month_Short_Jan+ " " + day  + " " + year);
			}else if(FormatDateGeneral=="MMMM d, y"){
				return (Month_Full_Jan+ " " + day  + " " + year);
			}
			break;
		case 2:
			if(FormatDateGeneral=="d M yy"){
				return (day + " " + Month_Short_Feb + " " +year);
			}else if(FormatDateGeneral=="M/d/yy"){
				return (Month_Short_Feb + "/" + day + "/" +year);
			}else if(FormatDateGeneral=="MMM d, y"){
				return (Month_Short_Feb + " " + day + " " +year);
			}else if(FormatDateGeneral=="MMMM d, y"){
				return (Month_Full_Feb + " " + day + " " +year);
			}
			break;
		case 3:
			if(FormatDateGeneral=="d M yy"){
				return (day + " " + Month_Short_Mar + " " + year);
			}else if(FormatDateGeneral=="M/d/yy"){
				return (Month_Short_Mar + "/" + day + "/" + year);
			}else if(FormatDateGeneral=="MMM d, y"){
				return (Month_Short_Mar + " " + day + " " + year);
			}else if(FormatDateGeneral=="MMMM d, y"){
				return (Month_Full_Mar + " " + day + " " + year);
			}
			break;
		case 4:
			if(FormatDateGeneral=="d M yy"){
				return (day + " " + Month_Short_Apr + " " + year);
			}else if(FormatDateGeneral=="M/d/yy"){
				return (Month_Short_Apr + "/" + day + "/" + year);
			}else if(FormatDateGeneral=="MMM d, y"){
				return (Month_Short_Apr + " " + day + " " + year);
			}else if(FormatDateGeneral=="MMMM d, y"){
				return (Month_Full_Apr + " " + day + " " + year);
			}
			break;
		case 5:
			if(FormatDateGeneral=="d M yy"){
				return (day + " " + Month_Short_May + " " + year);
			}else if(FormatDateGeneral=="M/d/yy"){
				return (Month_Short_May + "/" + day + "/" + year);
			}else if(FormatDateGeneral=="MMM d, y"){
				return (Month_Short_May + " " + day + " " + year);
			}else if(FormatDateGeneral=="MMMM d, y"){
				return (Month_Full_May + " " + day + " " + year);
			}
			break;
		case 6:
			if(FormatDateGeneral=="d M yy"){
				return (day + " " + Month_Short_Jun + " " + year);
			}else if(FormatDateGeneral=="M/d/yy"){
				return (Month_Short_Jun + "/" + day + "/" + year);
			}else if(FormatDateGeneral=="MMM d, y"){
				return (Month_Short_Jun + " " + day + " " + year);
			}else if(FormatDateGeneral=="MMMM d, y"){
				return (Month_Full_Jun + " " + day + " " + year);
			}
			break;
		case 7:
			if(FormatDateGeneral=="d M yy"){
				return (day + " " + Month_Short_Jul + " " + year);
			}else if(FormatDateGeneral=="M/d/yy"){
				return (Month_Short_Jul + "/" + day + "/" + year);
			}else if(FormatDateGeneral=="MMM d, y"){
				return (Month_Short_Jul + " " + day + " " + year);
			}else if(FormatDateGeneral=="MMMM d, y"){
				return (Month_Full_Jul + " " + day + " " + year);
			}
			break;
		case 8:
			if(FormatDateGeneral=="d M yy"){
				return (day + " " + Month_Short_Aug + " " + year);
			}else if(FormatDateGeneral=="M/d/yy"){
				return (Month_Short_Aug + "/" + day + "/" + year);
			}else if(FormatDateGeneral=="MMM d, y"){
				return (Month_Short_Aug + " " + day + " " + year);
			}else if(FormatDateGeneral=="MMMM d, y"){
				return (Month_Full_Aug + " " + day + " " + year);
			}
			break;
		case 9:
			if(FormatDateGeneral=="d M yy"){
				return (day + " " + Month_Short_Sep + " " + year);
			}else if(FormatDateGeneral=="M/d/yy"){
				return (Month_Short_Sep + "/" + day + "/" + year);
			}else if(FormatDateGeneral=="MMM d, y"){
				return (Month_Short_Sep + " " + day + " " + year);
			}else if(FormatDateGeneral=="MMMM d, y"){
				return (Month_Full_Sep + " " + day + " " + year);
			}
			break;
		case 10:
			if(FormatDateGeneral=="d M yy"){
				return (day + " " + Month_Short_Oct + " " + year);
			}else if(FormatDateGeneral=="M/d/yy"){
				return (Month_Short_Oct + "/" + day + "/" + year);
			}else if(FormatDateGeneral=="MMM d, y"){
				return (Month_Short_Oct + " " + day + " " + year);
			}else if(FormatDateGeneral=="MMMM d, y"){
				return (Month_Full_Oct + " " + day + " " + year);
			}
			break;
		case 11:
			if(FormatDateGeneral=="d M yy"){
				return (day + " " + Month_Short_Nov + " " + year);
			}else if(FormatDateGeneral=="M/d/yy"){
				return (Month_Short_Nov + "/" + day + "/" + year);
			}else if(FormatDateGeneral=="MMM d, y"){
				return (Month_Short_Nov + " " + day + " " + year);
			}else if(FormatDateGeneral=="MMMM d, y"){
				return (Month_Full_Nov + " " + day + " " + year);
			}
			break;
		case 12:
			if(FormatDateGeneral=="d M yy"){
				return (day + " " + Month_Short_Dec + " " + year);
			}else if(FormatDateGeneral=="M/d/yy"){
				return (Month_Short_Dec + "/" + day + "/" + year);
			}else if(FormatDateGeneral=="MMM d, y"){
			 	return (Month_Short_Dec + " " + day + " " + year);
			}else if(FormatDateGeneral=="MMMM d, y"){
				return (Month_Full_Dec + " " + day + " " + year);
			}
			break;
		}
	}
</script>